package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by ChenYong on 2017-04-24.
 * <br>
 * 更新举报的请求参数。
 */
public class UpdateReportResParam extends IdParam {
    /**
     * 举报结果
     */
    @NotBlank(message = "举报结果不能为空")
    @Length(min = Constants.VALUE_1, max = Constants.VALUE_1, message = "举报结果的长度为一个数字")
    @Pattern(regexp = Constants.NUMBER_RE, message = ("举报结果" + Constants.NUMBER_RE_MSG))
    private String reportResult;

    /**
     * 默认构造器。
     */
    public UpdateReportResParam() {
        super();
    }

    public String getReportResult() {
        return reportResult;
    }

    public void setReportResult(String reportResult) {
        this.reportResult = reportResult;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("UpdateReportResParam{");
        sb.append("id=").append(id);
        sb.append(", reportResult='").append(reportResult).append('\'');
        sb.append('}');
        return sb.toString();
    }
}